package com.ql.service.serviceImpl;

import com.ql.dao.MenuDao;
import com.ql.domain.response.MenuNode;
import com.ql.service.IUserService;
import com.ql.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class MenuServiceImpl implements MenuService {
    @Autowired
    MenuDao menuDao;
    @Autowired
    IUserService userService;

    @Override
    public List<MenuNode> selectList(Integer id) {
        List<MenuNode> menuNodes = menuDao.selectListByUserId(id);
        return menuNodes;
    }
}
